package com.cwz.admin.service.admin.impl;

import com.cwz.admin.entity.admin;
import com.cwz.admin.mapper.admin.adminMapper;
import com.cwz.admin.service.admin.adminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements adminService {

    @Autowired
    private adminMapper adminMapper;

    /**
     * 根据用户ID查询用户信息
     *
     * @param id 商品ID
     * @return
     */
    @Override
    public admin adminFindCommodityByID(int id) {
        return adminMapper.adminFindCommodityByID(id);
    }

    /**
     * 修改用户密码
     *
     * @param pwd 用户密码
     * @return
     */
    @Override
    public int adminUpdCommodity(admin admin) {
        return adminMapper.adminUpdCommodity(admin);
    }
}
